﻿using System;

namespace VideoReflector.Controllers
{
    /// <summary>
    /// Event arguments passed on task associated with view / controller being finished
    /// </summary>
    public class TaskFinishedEventArgs : EventArgs
    {
        private bool _wasCancelled;

        /// <summary>
        /// Constructor for TaskFinishedEventArgs
        /// </summary>
        /// <param name="wasCancelled"> Whether the task was cancelled before completion </param>
        public TaskFinishedEventArgs(bool wasCancelled)
            : base()
        {
            _wasCancelled = wasCancelled;
        }

        /// <summary>
        /// Whether the task was cancelled before completion
        /// </summary>
        public bool wasCancelled { get { return _wasCancelled; } }
    }
}
